microprocessors - microchip 16F84A - indirect addressing DELETE MEWhat links here?
The INDF register is used to read and write the register pointed to by the FSR register.

Clearing a range of RAM using indirect addressing

This example clears 0x20 to 0x2F using indirect addressing.
        movlw   0x20        ;initialize pointer
        movwf   FSR         ;to RAM
NEXT    clrf    INDF        ;clear INDF register
        incf    FSR         ;inc pointer
        btfss   FSR,4       ;all done?
        goto    NEXT        ;NO, clear next
CONTINUE
        :                   ;YES, continue
microprocessors - microchip 16F84A - indirect addressing DELETE ME
filename:microprocessors - microchip 16F84A - indirect addressing DELETE ME
filename:microprocessors%20%2D%20microchip%2016F84A%20%2D%20indirect%20addressing%20DELETE%20ME
last edit:March 26 2009 20:43:58 (5519 days ago)
ct = 1714963842.000000 = May 05 2024 22:50:42
ft = 1238114638.000000 = March 26 2009 20:43:58
dt = 476849204.000000